package com.king.web.controller.system;


import com.king.common.config.KingConfig;
import com.king.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysIndexController {
    @Autowired
    private KingConfig kingConfig;

    @RequestMapping("/")
    public String index(){
        return StringUtils.format("欢迎使用{}后台管理框架，当前版本：v{}，请通过前端地址访问。",
                kingConfig.getName(), kingConfig.getVersion());
    }
}
